<template>
  <div class="back" @click="back">
    
  </div>
</template>

<script>

export default {
  name: '',
  props:{
    path:{
      type:String,
      default:'-1'
    }
  },
  data () {
    return {
      
    }
  },
  methods:{
  back(){
    if(this.path==-1){
      this.$router.go(-1)
    }
    this.$router.push(this.path)
  }
}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.back{
  position: fixed;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  z-index: 99;
  background-color: #fff;
  border-radius: 50%;
  background-image: url('../../assets/img/Common/返回.svg');
  background-size: cover;
}

</style>